package com.sinog.front.feign.biz;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;

/**
 * @desc 小铃铛feign
 * @author lzq
 * @date 2020-07-21 5:44 下午
 */
@FeignClient("sinog2c-biz")
public interface NoticeService {

    /**
     * 查询各项待办事项的条数
     * @param querykey querykey
     * @return Map<String,Integer>
     */
    @PostMapping("/azbj/notice/count")
    Map<String,Integer> count(@RequestParam("querykey") String querykey);

    /**
     * 查询待办事项
     * @param querykey querykey
     * @param type type
     * @return String
     */
    @PostMapping("/azbj/notice/list")
    String list(@RequestParam("querykey") String querykey,@RequestParam("type") String type);
}